package cn.com.git.workflow.common;

import cn.com.git.common.base.BaseResultConstant;

/**
 * @author zhangzhenfu
 * @Description
 * @date 2020/4/8 14:55
 */
public enum WorkFlowResultConstant implements BaseResultConstant {
    /**
     * 失败
     */
    FAILED(false, 0, "操作失败"),

    /**
     * 成功
     */
    SUCCESS(true, 1, "操作成功")

    ;


    private boolean success ;

    private int code;

    private String message;

    WorkFlowResultConstant(boolean success,int code, String message) {
        this.code = code;
        this.message = message;
        this.success=success;
    }

    @Override
    public boolean getSuccess() {
        return success;
    }

    @Override
    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
